//
//  LRSearchView.swift
//  LRWeibo
//
//  Created by Ruihaha on 16/9/22.
//  Copyright © 2016年 macbook air . All rights reserved.
//

import UIKit

class LRSearchView: UIButton {


    //从xib加载视图的类方法
    class func loadSearchView()->LRSearchView{
        let nib = UINib(nibName: "LRSearchView", bundle: nil)
        return nib.instantiate(withOwner: nil, options: nil).last as! LRSearchView
    }
    
    override func awakeFromNib() {
        self.layer.cornerRadius=17
        self.bounds.size.width = UIScreen.main.bounds.width
    }
    
    
}
